package ioc;

import model.Constants;

public class IoCMoletteImpl implements IoCMolette {

	private static IoCMolette iocMoletteInstance;
	
	private float position;
	
	public static IoCMolette IoCMoletteInstance() {
		if(iocMoletteInstance == null) {
			iocMoletteInstance = new IoCMoletteImpl();
		}
		
		return iocMoletteInstance;
	}
	
	private IoCMoletteImpl() {
		position = Constants.DEFAULT_WHEEL_VALUE;
	}
	
	@Override
	public float getPosition() {
		return position;
	}

	@Override
	public void setPosition(float position) {
		this.position = position;	
	}

}
